package com.ruoyi.system.domain;

import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 对外接口实体对象 t_dm_graph_outapi_info
 *
 * @author wjialong
 */
public class OutapiInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "id")
    private String id;

    /**
     * 接口名称
     */
    @Excel(name = "接口名称")
    private String apiName;

    /**
     * 接口中文名称
     */
    @Excel(name = "接口中文名称")
    private String apiCname;

    /**
     * 请求接口地址
     */
    @Excel(name = "请求接口地址")
    private String requestUrl;

    /**
     * 接口所属模块ID
     */
    @Excel(name = "接口所属模块ID")
    private String moduleId;

    /**
     * 状态 0:初始化 1：发布 2：下线
     */
    @Excel(name = "状态 0:初始化 1：发布 2：下线")
    private String apiStatus;

    /**
     * 请求协议
     */
    @Excel(name = "请求协议")
    private String requestMethod;

    /**
     * 请求参数
     */
    @Excel(name = "请求参数")
    private String requestParam;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setApiName(String apiName) {
        this.apiName = apiName;
    }

    public String getApiName() {
        return apiName;
    }

    public void setApiCname(String apiCname) {
        this.apiCname = apiCname;
    }

    public String getApiCname() {
        return apiCname;
    }

    public void setRequestUrl(String requestUrl) {
        this.requestUrl = requestUrl;
    }

    public String getRequestUrl() {
        return requestUrl;
    }

    public void setModuleId(String moduleId) {
        this.moduleId = moduleId;
    }

    public String getModuleId() {
        return moduleId;
    }

    public void setApiStatus(String apiStatus) {
        this.apiStatus = apiStatus;
    }

    public String getApiStatus() {
        return apiStatus;
    }

    public void setRequestMethod(String requestMethod) {
        this.requestMethod = requestMethod;
    }

    public String getRequestMethod() {
        return requestMethod;
    }

    public void setRequestParam(String requestParam) {
        this.requestParam = requestParam;
    }

    public String getRequestParam() {
        return requestParam;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("apiName", getApiName())
                .append("apiCname", getApiCname())
                .append("requestUrl", getRequestUrl())
                .append("moduleId", getModuleId())
                .append("remark", getRemark())
                .append("apiStatus", getApiStatus())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("requestMethod", getRequestMethod())
                .append("requestParam", getRequestParam())
                .toString();
    }
}
